// 获取加注机列表
export const fillingGif = `
query($type:String){ads(type:$type){id title imageurl linkurl}}`;
// 获取加注机列表
export const fillingList = `
query($longitude:Float,$latitude:Float,$type:String){fill_list(longitude:$longitude,latitude:$latitude,type:$type){id name latitude longitude type}}`;
// 获取加注列表
export const fillingLists = `
query($longitude:Float,$latitude:Float,$type:String){
  fill_list(longitude:$longitude,latitude:$latitude,type:$type){
    id
    type
    latitude
    longitude
    name
    image
    images
    address
    abbreviate
    time
    distance
    mobile
  }
}`;
// 获取加注详情
export const fillingListL = `
query($longitude:Float,$latitude:Float,$id:String){
  fill(longitude:$longitude,latitude:$latitude,id:$id){
    id 
    name 
    images 
    address 
    time 
    distance 
    mobile 
    des 
    type
    longitude
    latitude
  }
}`;
// 获取加注详情
export const fillingListA = `
query($id:String,$driver_id:Int){
  fill(id:$id,driver_id:$driver_id){
    id 
    name 
    price 
    store_name 
    vip_price 
    fill_code 
    product_name 
    product_count 
    max_count 
    max_price
    union_id
    imsi
  }
}`;
// 计算定额定量
export const custo = `
query($type:String,$fill_price:Float,$count:Float,$price:Float,$driver_id:Int,$vip_price:Float){
  get_jisuan(type:$type,fill_price:$fill_price,price:$price,count:$count,driver_id:$driver_id,vip_price:$vip_price){
    type 
    price 
    count 
    vip_price
    vip_count
  }
}`;
// 扫码去支付页面
export const scanCode = `
query($order_id:Int,$driver_id:Int){
  order_filling(order_id:$order_id,driver_id:$driver_id){ 
    order_info{
      id
      order_sn
      type
      amount
      cart_code
      is_hexiao
      sub_text
      price
    }
    wechat_pay{
      price
      amount
      unit_price
      cha_count
      cha_price
    }
    money_pay{
      price
      amount
      unit_price
      cha_count
      cha_price
    }
  }
}`;
// 获取账户列表
export const customList = `
query($money:Float,$driver_id:Int,$team_id:Int,$fill_id:String,$code:String){
  empower_list_for_me(money:$money,driver_id:$driver_id,team_id:$team_id,fill_id:$fill_id,code:$code){
    title
    name
    money_id
    money
    type
    content
    cate
    msg
    price
  }
}`;
// 获取订单状态
export const fillingOr = `
query($order_id:Int,$driver_id:Int){
  fill_order(order_id:$order_id,driver_id:$driver_id){
      id
      order_sn
      type
      total_amount
      amount
      cart_code
      fill_amount
      fill_code
      fill_fee
      tui_fee
      fill_status
      order_type
      tui_fee
      score
      fill_status_text
      code
      goods
      preparer
      pin_id
  }
}`;
// 检测是否弹出蓝宝石图片
export const checkTanGem = `
query($order_id:Int){
  checkTanGem(order_id:$order_id){
    gem
    mp3
  }
}`;
// 获取订单列表
export const fillingOrder = `
query($page: Int, $start: String, $end: String, $status: Int, $cart_code: String,$driver_id:Int,$from_driver_id:Int) {
  fill_order_list(status: $status, page: $page, start: $start, end: $end, cart_code: $cart_code,driver_id:$driver_id,from_driver_id:$from_driver_id) {
    list {
      id
      order_sn
      createtime
      status_text
      product_name
      total_amount
      amount
      driver_name
      cart_code
      order_type
      fill_price
      fill_fee
      pay_fee
      fill_amount
    }
    total
    lastpage
    count
    price
  }
}`;

// 获取订单详情
export const fillingOrders = `
query($order_id:Int,$driver_id:Int){
  fill_order(order_id:$order_id,driver_id:$driver_id){ 
    id
    order_sn
    type
    total_amount
    amount
    createtime
    address
    fill_code
    fill_amount
    fill_fee
    cart_code
    driver_name
    product_name
    order_type
    tui_fee
    pay_fee
    score
    fill_status_text
    fleet
    route
    mileage
    goods_list
    pay_list{type name money}
  }
}`;
// 获取正在加注订单
export const orderJ = 'query($driver_id:Int){do_filling_order_id(driver_id:$driver_id){order_id}}';
// 预约加注 加注机地址
// export const machineAddressList = `
// query($longitude:Float,$latitude:Float){
//   fill_list(longitude:$longitude,latitude:$latitude){
//     id
//     type
//     latitude
//     longitude
//     name
//     image
//     address
//     distance
//     mobile
//   }
// }`;
// 预约加注 福利列表
export const giftList = `
  query{
    goods_list{
      id
      name
    }
}`;
// 预约加注 车牌号列表
// export const VehiclePlateNumberList = `
// query{
//   cart_list{
//     id
//     brand_id
//     cart_code
//     brand_name
//     years
//     discharge
//   }
// }`;
// 预约加注 获取常驻地址
export const commonParkingAddress = `
query($driver_id:Int){
  address_list(driver_id:$driver_id){
    id
    consignee
    phone
    abbreviate
    address
    is_default
    latitude
    longitude
  }
}`;
// 预约加注 获取预约列表
export const appointmentList = `
query($page:Int,$driver_id:Int,$start: String, $end: String){
  sub_order_list(page:$page,driver_id:$driver_id,start: $start, end: $end){
    list{
      id
      type
      time
      status
      status_text
      cart_code
      amount
      order_sn
      store_name
      store_mobile
      address
      shop_goods_name
      is_hexiao
      des
      cart_code
	  tel
	  driver_name
	  driver_mobile
    }
    total
    lastpage
  }
}`;

export const fillingMachineAddress = `
query($id:String){
  fill(id:$id){
    abbreviate
    address
    latitude
    longitude
    code
  }
}`;
export const fillings = `
query($id:String){
  fill_test(id:$id,){
    code
    pulse_equ
    is_update
  }
}`;
// 获取测试订单列表
export const fillingCeOrder = `
query($page: Int, $start: String, $end: String, $fill_id: String,$driver_id:Int) {
  test_order_list(page: $page, start: $start, end: $end, fill_id: $fill_id,driver_id:$driver_id) {
    list {
      id
      order_sn
      createtime
      amount
      true_amount
      pulse_equ
    }
    total
    lastpage
  }
}`;
// 获取测试加注机列表
export const fillList = `
query($driver_id:Int){
  fill_list_test(driver_id:$driver_id){
    id
    code
  }
}`;
//获取加注机团价格
export const getTeamPrice = `
query($team_id:Int,$code:String,$price:Float){
  getTeamPrice(team_id:$team_id,code:$code,price:$price){
    type
    wechat
    money
    day
    image
    fenbo_amount
    fenbo_price
    team_name
    wechat_amount
    money_amount
  }
}`;
//获取外卖加注机团价格
export const takeawayPrice = `
query($team_id:Int,$code:String,$price:Float){
  getTeamPrice(team_id:$team_id,code:$code,price:$price){
    type
    wechat
    money
    day
    image
    team_name
    wechat_amount
    money_amount
  }
}`;
//获取加注机普通用户价格
export const getDriverPrice = `
query($code:String,$price:Float){
  getDriverPrice(code:$code,price:$price){
    wechat
    money
    wechat_amount
    money_amount
  }
}`;
//获取外卖加注订单列表
export const getOrderList = `
query($page: Int, $starttime: String, $endtime: String,$driver_id:Int){
  getOrderListByDriver(page: $page, starttime: $starttime, endtime: $endtime, driver_id:$driver_id) {
    list {
      id
      order_sn
      price
      money
      amount
      createtime
      status
      status_text
    }
    amount
    money
    total
    lastpage
  }
}`;
//获取外卖代理加注订单列表
export const getOrderListByMoneyID = `
query($page: Int, $starttime: String, $endtime: String,$driver_id:Int,$money_id:Int){
  getOrderListByMoneyID(page: $page, starttime: $starttime, endtime: $endtime, driver_id:$driver_id,money_id:$money_id) {
    list {
      id
      fill_fee
      amount
      order_sn
      price
      cart_code
      createtime
    }
    total
    lastpage
  }
}`;
//获取外卖加注订单详情
export const getOrderInfo = `
query($order_id:Int){
  getOrderInfo(order_id:$order_id){
    order_sn
    createtime
    time
    address
    amount
    cart_code
    driver_name
    driver_mobile
    plug_name
    plug_mobile
    fill_status_text
    fill_status
    fill_amount
    fill_fee
    tui_money
    score
    money
    fill_id
    fill_name
  }
}`;
//车队页面计算
export const fleetJisuan = `
query($fleet_id:Int,$price:Float,$code:String){
  fleet_jisuan(fleet_id:$fleet_id,price:$price,code:$code){
    wechat_price
    money_price
    wechat_amount
    money_amount
    fleet_amount
    fleet_price
  }
}`;